package cn.qdu.dao;

import cn.qdu.model.Comment;

import java.sql.SQLException;
import java.util.List;

public interface CommentDao {
    boolean addComment(Comment comment) throws SQLException;
    List<Comment> getCommentsByPostId(int postId) throws SQLException;
    boolean deleteComment(int commentId, String userId) throws SQLException;
    int getCommentCountByPostId(int postId) throws SQLException;
}